﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IEstate.Core.Models
{
    public enum Code {
        yes
    }

    public enum Category
    {
        studio, apartment, house, villa
    }

    public enum Option
    {
        buy, rent
    }

    public enum Order
    {
        asc, desc
    }

    public class EImage
    {
        public int EImageID { get; set; }
        public byte[] ImageData { get; set; }
        public string ImageMimeType { get; set; }
        public int EstateID { get; set; }
    }

    public class Estate
    {
        public Estate() { 
            Views = 0; 
        }

        public int EstateID { get; set; }
        public int UID { get; set; }

        public string Street { get; set; }
        public string City { get; set; }

        public decimal Price { get; set; }
        public decimal Size { get; set; }

        public DateTime Date { get; set; }
        public bool Promotional { get; set; }

        public Option TypeOption { get; set; }
        public Category TypeCategory { get; set; }

        public string Info { get; set; }
        public int Views { get; set; }

        public int Bedrooms { get; set; }
    }
}
